package com.air.thread;


import java.util.concurrent.atomic.AtomicInteger;

/**
 * @author shent
 */
public class AtomicDemo {
    static AtomicInteger atomicInteger=new AtomicInteger(0);
    public static void main(String[] args) {
        atomicInteger.getAndIncrement();
        System.out.println(atomicInteger.addAndGet(1));
    }
}
